package cn.clx.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * token自动刷新，接收前段参数dto
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TokenRefreshDto {
    @NotEmpty(message = "刷新token不能为空")
    private String refreshToken;
    @NotEmpty(message = "用户名不能为空")
    private String username;
}
